package com.share.base.log;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class LogService {
	@Before("execution(* com.mengzhiang.struts2.user.service.UserService.* (..))")
    public void logBefore() throws Throwable {
    	//System.out.println("log before日记记录");
    }
	
	@After("execution(* com.mengzhiang.struts2.user.service.UserService.* (..))")
    public void logAfter() throws Throwable {
    	//System.out.println("log after 日记记录");
    }
}
